package com.example.demo.simplefactory01;

/**
 * 简单工厂--运算类
 */
public abstract class Operation {
    private double numberA = 0d;
    private double numberB = 0d;

    protected abstract double getResult();

    public double getNumberA() {
        return numberA;
    }

    public void setNumberA(double numberA) {
        this.numberA = numberA;
    }

    public double getNumberB() {
        return numberB;
    }

    public void setNumberB(double numberB) {
        this.numberB = numberB;
    }
}
